import request from '@/utils/request';

// -----------------------------------------活动列表-----------------------------------------
// 列表
export function getpullList(data: any) {
    return request({
        url: '/scrm-api/console/market/red/list',
        method: 'post',
        data,
        noNeedLoading: true
    });
}
// 开始/结束
export function pullChange(data: any) {
    return request({
        url: '/scrm-api/console/market/red/advance',
        method: 'post',
        data,
        noNeedLoading: true
    });
}
// 批量删除/删除
export function pullDel(data: any) {
    return request({
        url: '/scrm-api/console/market/red/del',
        method: 'post',
        data,
        noNeedLoading: true
    });
}
// 批量下载/下载
export function pullDown(data: any) {
    return request({
        url: '/scrm-api/console/market/red/download',
        method: 'post',
        data
    });
}
// -----------------------------------------活动详情-----------------------------------------
// 新建
export function pullCreate(data: any) {
    return request({
        url: '/scrm-api/console/market/red/create',
        method: 'post',
        data
    });
}
// 查看
export function pullInfo(data: any) {
    return request({
        url: '/scrm-api/console/market/red/info',
        method: 'post',
        data
    });
}
// 编辑
export function pullEdit(data: any) {
    return request({
        url: '/scrm-api/console/market/red/edit',
        method: 'post',
        data
    });
}
// -----------------------------------------参与者明细-----------------------------------------
// 参与者/统计-基础数据
export function getPullBasisInfo(data: any) {
    return request({
        url: '/scrm-api/console/market/red/baseInfo',
        method: 'post',
        data
    });
}
// 列表
export function getpartakeList(data: any) {
    return request({
        url: '/scrm-api/console/market/red/customer',
        method: 'post',
        data
    });
}
// 导出
export function getExport(data: any) {
    return request({
        url: '/scrm-api/console/market/red/customerExport',
        method: 'post',
        data
    });
}
// -----------------------------------------统计-----------------------------------------
export function getStatis(data: any) {
    return request({
        url: '/scrm-api/console/market/red/stats',
        method: 'post',
        data
    });
}
